package com.dly.hope.repository;

import com.dly.hope.modle.WebSocketMemberMessage;
import com.dly.hope.modle.WebSocketMessage;
import org.aspectj.weaver.ast.And;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface WebSocketMemberMessageRepository extends JpaRepository<WebSocketMemberMessage, String> {

    List<WebSocketMemberMessage> findAllByWebSocketMessageIdInAndAcceptId(List<String> messageIds, String AcceptId);

    List<WebSocketMemberMessage> findAllByGroupIdAndAcceptIdAndIsRead(String groupId, String acceptId, Boolean isRead);
}
